package com.lingkang.xcoa.data.dao;

import com.lingkang.xcoa.data.entity.OaUser;
import com.lingkang.xcoa.data.vo.PeopleListVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author linke
 * @date 2020/8/19 22:49
 * @description
 */
public interface OaUserMapper {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(OaUser record);

    OaUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OaUser record);

    OaUser getUserInfo(String username);

    List<PeopleListVo> getPeopleList(@Param("username") String username,
        @Param("nameLike") String nameLike);

    void updateStatus(@Param("username") String username, @Param("status") Integer status);
}
